<template>
  <a-spin :spinning="confirmLoading">
    <j-form-container :disabled="formDisabled">
      <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
        <a-row>
          <a-col :span="24">
            <a-form-model-item label="年份" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="year">
              <a-input v-model="model.year" placeholder="请输入年份"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="月份" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="month">
              <a-input v-model="model.month" placeholder="请输入月份"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="成本分群" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="costGroup">
              <a-input v-model="model.costGroup" placeholder="请输入成本分群"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="成本分群说明" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="costGroupDesc">
              <a-input v-model="model.costGroupDesc" placeholder="请输入成本分群说明"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="成本中心" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="costCenter">
              <a-input v-model="model.costCenter" placeholder="请输入成本中心"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="说明(简称)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="descShort">
              <a-input v-model="model.descShort" placeholder="请输入说明(简称)"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="委外商编码" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="vendorCode">
              <a-input v-model="model.vendorCode" placeholder="请输入委外商编码"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="委外商名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="vendorName">
              <a-input v-model="model.vendorName" placeholder="请输入委外商名称"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="营运据点" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="site">
              <a-input v-model="model.site" placeholder="请输入营运据点"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="说明(简称)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="siteDescShort">
              <a-input v-model="model.siteDescShort" placeholder="请输入说明(简称)"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制单号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="wipOrderNo">
              <a-input v-model="model.wipOrderNo" placeholder="请输入在制单号"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="主件料号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mainItemCode">
              <a-input v-model="model.mainItemCode" placeholder="请输入主件料号"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="品名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="itemName">
              <a-input v-model="model.itemName" placeholder="请输入品名"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="规格" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="spec">
              <a-input v-model="model.spec" placeholder="请输入规格"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="主料产品特征" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="mainItemFeature">
              <a-input v-model="model.mainItemFeature" placeholder="请输入主料产品特征"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="批号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="batchNo">
              <a-input v-model="model.batchNo" placeholder="请输入批号"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="成本单位" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="costUnit">
              <a-input v-model="model.costUnit" placeholder="请输入成本单位"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="说明" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="description">
              <a-input v-model="model.description" placeholder="请输入说明"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="成本域" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="costDomain">
              <a-input v-model="model.costDomain" placeholder="请输入成本域"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期初在制数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="openingWipQty">
              <a-input v-model="model.openingWipQty" placeholder="请输入期初在制数量"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期初在制成本-材料" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="openingMatCost">
              <a-input v-model="model.openingMatCost" placeholder="请输入期初在制成本-材料"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期初在制成本-人工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="openingLaborCost">
              <a-input v-model="model.openingLaborCost" placeholder="请输入期初在制成本-人工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期初在制成本-加工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="openingProcCost">
              <a-input v-model="model.openingProcCost" placeholder="请输入期初在制成本-加工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期初在制成本-制费一" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="openingMfgCost1">
              <a-input v-model="model.openingMfgCost1" placeholder="请输入期初在制成本-制费一"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期初在制成本-制费二" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="openingMfgCost2">
              <a-input v-model="model.openingMfgCost2" placeholder="请输入期初在制成本-制费二"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期初在制成本-制费三" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="openingMfgCost3">
              <a-input v-model="model.openingMfgCost3" placeholder="请输入期初在制成本-制费三"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期初在制成本-制费四" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="openingMfgCost4">
              <a-input v-model="model.openingMfgCost4" placeholder="请输入期初在制成本-制费四"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期初在制成本-制费五" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="openingMfgCost5">
              <a-input v-model="model.openingMfgCost5" placeholder="请输入期初在制成本-制费五"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期初在制成本" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="openingTotalCost">
              <a-input v-model="model.openingTotalCost" placeholder="请输入期初在制成本"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制投入数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentInputQty">
              <a-input v-model="model.currentInputQty" placeholder="请输入本期在制投入数量"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制投入成本-材料" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentInputMat">
              <a-input v-model="model.currentInputMat" placeholder="请输入本期在制投入成本-材料"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制投入成本-人工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentInputLabor">
              <a-input v-model="model.currentInputLabor" placeholder="请输入本期在制投入成本-人工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制投入成本-加工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentInputProc">
              <a-input v-model="model.currentInputProc" placeholder="请输入本期在制投入成本-加工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制投入成本-制费一" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentInputMfg1">
              <a-input v-model="model.currentInputMfg1" placeholder="请输入本期在制投入成本-制费一"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制投入成本-制费二" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentInputMfg2">
              <a-input v-model="model.currentInputMfg2" placeholder="请输入本期在制投入成本-制费二"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制投入成本-制费三" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentInputMfg3">
              <a-input v-model="model.currentInputMfg3" placeholder="请输入本期在制投入成本-制费三"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制投入成本-制费四" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentInputMfg4">
              <a-input v-model="model.currentInputMfg4" placeholder="请输入本期在制投入成本-制费四"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制投入成本-制费五" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentInputMfg5">
              <a-input v-model="model.currentInputMfg5" placeholder="请输入本期在制投入成本-制费五"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制投入成本" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentInputTotal">
              <a-input v-model="model.currentInputTotal" placeholder="请输入本期在制投入成本"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制下阶投入成本-材料" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentLowerInputMat">
              <a-input v-model="model.currentLowerInputMat" placeholder="请输入本期在制下阶投入成本-材料"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制下阶投入成本-人工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentLowerInputLabor">
              <a-input v-model="model.currentLowerInputLabor" placeholder="请输入本期在制下阶投入成本-人工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制下阶投入成本-加工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentLowerInputProc">
              <a-input v-model="model.currentLowerInputProc" placeholder="请输入本期在制下阶投入成本-加工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制下阶投入成本-制费一" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentLowerInputMfg1">
              <a-input v-model="model.currentLowerInputMfg1" placeholder="请输入本期在制下阶投入成本-制费一"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制下阶投入成本-制费二" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentLowerInputMfg2">
              <a-input v-model="model.currentLowerInputMfg2" placeholder="请输入本期在制下阶投入成本-制费二"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制下阶投入成本-制费三" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentLowerInputMfg3">
              <a-input v-model="model.currentLowerInputMfg3" placeholder="请输入本期在制下阶投入成本-制费三"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制下阶投入成本-制费四" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentLowerInputMfg4">
              <a-input v-model="model.currentLowerInputMfg4" placeholder="请输入本期在制下阶投入成本-制费四"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制下阶投入成本-制费五" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentLowerInputMfg5">
              <a-input v-model="model.currentLowerInputMfg5" placeholder="请输入本期在制下阶投入成本-制费五"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制下阶投入成本" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentLowerInputTotal">
              <a-input v-model="model.currentLowerInputTotal" placeholder="请输入本期在制下阶投入成本"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制转出数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentOutputQty">
              <a-input v-model="model.currentOutputQty" placeholder="请输入本期在制转出数量"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制转出成本-材料" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentOutputMat">
              <a-input v-model="model.currentOutputMat" placeholder="请输入本期在制转出成本-材料"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制转出成本-人工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentOutputLabor">
              <a-input v-model="model.currentOutputLabor" placeholder="请输入本期在制转出成本-人工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制转出成本-加工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentOutputProc">
              <a-input v-model="model.currentOutputProc" placeholder="请输入本期在制转出成本-加工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制转出成本-制费一" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentOutputMfg1">
              <a-input v-model="model.currentOutputMfg1" placeholder="请输入本期在制转出成本-制费一"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制转出成本-制费二" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentOutputMfg2">
              <a-input v-model="model.currentOutputMfg2" placeholder="请输入本期在制转出成本-制费二"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制转出成本-制费三" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentOutputMfg3">
              <a-input v-model="model.currentOutputMfg3" placeholder="请输入本期在制转出成本-制费三"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制转出成本-制费四" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentOutputMfg4">
              <a-input v-model="model.currentOutputMfg4" placeholder="请输入本期在制转出成本-制费四"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制转出成本-制费五" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentOutputMfg5">
              <a-input v-model="model.currentOutputMfg5" placeholder="请输入本期在制转出成本-制费五"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="本期在制转出成本" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="currentOutputTotal">
              <a-input v-model="model.currentOutputTotal" placeholder="请输入本期在制转出成本"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制差异转出数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="varianceOutputQty">
              <a-input v-model="model.varianceOutputQty" placeholder="请输入在制差异转出数量"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制差异转出成本-材料" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="varianceOutputMat">
              <a-input v-model="model.varianceOutputMat" placeholder="请输入在制差异转出成本-材料"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制差异转出成本-人工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="varianceOutputLabor">
              <a-input v-model="model.varianceOutputLabor" placeholder="请输入在制差异转出成本-人工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制差异转出成本-加工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="varianceOutputProc">
              <a-input v-model="model.varianceOutputProc" placeholder="请输入在制差异转出成本-加工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制差异转出成本-制费一" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="varianceOutputMfg1">
              <a-input v-model="model.varianceOutputMfg1" placeholder="请输入在制差异转出成本-制费一"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制差异转出成本-制费二" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="varianceOutputMfg2">
              <a-input v-model="model.varianceOutputMfg2" placeholder="请输入在制差异转出成本-制费二"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制差异转出成本-制费三" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="varianceOutputMfg3">
              <a-input v-model="model.varianceOutputMfg3" placeholder="请输入在制差异转出成本-制费三"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制差异转出成本-制费四" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="varianceOutputMfg4">
              <a-input v-model="model.varianceOutputMfg4" placeholder="请输入在制差异转出成本-制费四"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制差异转出成本-制费五" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="varianceOutputMfg5">
              <a-input v-model="model.varianceOutputMfg5" placeholder="请输入在制差异转出成本-制费五"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="在制差异转出成本" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="varianceOutputTotal">
              <a-input v-model="model.varianceOutputTotal" placeholder="请输入在制差异转出成本"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期末在制数量" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="closingWipQty">
              <a-input v-model="model.closingWipQty" placeholder="请输入期末在制数量"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期末在制成本-材料" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="closingMatCost">
              <a-input v-model="model.closingMatCost" placeholder="请输入期末在制成本-材料"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期末在制成本-人工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="closingLaborCost">
              <a-input v-model="model.closingLaborCost" placeholder="请输入期末在制成本-人工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期末在制成本-加工" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="closingProcCost">
              <a-input v-model="model.closingProcCost" placeholder="请输入期末在制成本-加工"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期末在制成本-制费一" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="closingMfgCost1">
              <a-input v-model="model.closingMfgCost1" placeholder="请输入期末在制成本-制费一"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期末在制成本-制费二" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="closingMfgCost2">
              <a-input v-model="model.closingMfgCost2" placeholder="请输入期末在制成本-制费二"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期末在制成本-制费三" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="closingMfgCost3">
              <a-input v-model="model.closingMfgCost3" placeholder="请输入期末在制成本-制费三"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期末在制成本-制费四" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="closingMfgCost4">
              <a-input v-model="model.closingMfgCost4" placeholder="请输入期末在制成本-制费四"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期末在制成本-制费五" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="closingMfgCost5">
              <a-input v-model="model.closingMfgCost5" placeholder="请输入期末在制成本-制费五"  ></a-input>
            </a-form-model-item>
          </a-col>
          <a-col :span="24">
            <a-form-model-item label="期末在制成本" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="closingTotalCost">
              <a-input v-model="model.closingTotalCost" placeholder="请输入期末在制成本"  ></a-input>
            </a-form-model-item>
          </a-col>
        </a-row>
      </a-form-model>
    </j-form-container>
  </a-spin>
</template>

<script>

  import { httpAction, getAction } from '@/api/manage'
  import { validateDuplicateValue } from '@/utils/util'

  export default {
    name: 'Axcq540ChAllForm',
    components: {
    },
    props: {
      //表单禁用
      disabled: {
        type: Boolean,
        default: false,
        required: false
      }
    },
    data () {
      return {
        model:{
         },
        labelCol: {
          xs: { span: 24 },
          sm: { span: 5 },
        },
        wrapperCol: {
          xs: { span: 24 },
          sm: { span: 16 },
        },
        confirmLoading: false,
        validatorRules: {
        },
        url: {
          add: "/ch/axcq540ChAll/add",
          edit: "/ch/axcq540ChAll/edit",
          queryById: "/ch/axcq540ChAll/queryById"
        }
      }
    },
    computed: {
      formDisabled(){
        return this.disabled
      },
    },
    created () {
       //备份model原始值
      this.modelDefault = JSON.parse(JSON.stringify(this.model));
    },
    methods: {
      add () {
        this.edit(this.modelDefault);
      },
      edit (record) {
        this.model = Object.assign({}, record);
        this.visible = true;
      },
      submitForm () {
        const that = this;
        // 触发表单验证
        this.$refs.form.validate(valid => {
          if (valid) {
            that.confirmLoading = true;
            let httpurl = '';
            let method = '';
            if(!this.model.id){
              httpurl+=this.url.add;
              method = 'post';
            }else{
              httpurl+=this.url.edit;
               method = 'put';
            }
            httpAction(httpurl,this.model,method).then((res)=>{
              if(res.success){
                that.$message.success(res.message);
                that.$emit('ok');
              }else{
                that.$message.warning(res.message);
              }
            }).finally(() => {
              that.confirmLoading = false;
            })
          }
         
        })
      },
    }
  }
</script>